package cn.ickck.law_paper_final.service.Impl;

import cn.ickck.law_paper_final.mapper.HouseLoanBatchMapper;
import cn.ickck.law_paper_final.model.entity.HouseLoan;
import cn.ickck.law_paper_final.model.entity.HouseLoanBatch;
import cn.ickck.law_paper_final.service.HouseLoanBatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 12:24 2020/11/7
 */
@Service
public class HouseLoanBatchServiceImpl implements HouseLoanBatchService {
    @Autowired
    private HouseLoanBatchMapper houseLoanBatchMapper;
    @Override
    public Integer insert(HouseLoanBatch houseLoanBatch) {
        return houseLoanBatchMapper.insert(houseLoanBatch);
    }


    @Override
    public int count() {
        return houseLoanBatchMapper.count();
    }


    @Override
    public List<HouseLoanBatch> selectByPage(int start, int end) {
        return houseLoanBatchMapper.selectByPage(start,end);
    }

    @Override
    public Integer deleteById(Integer id) {
        return houseLoanBatchMapper.deleteById(id);
    }

    @Override
    public Integer update(HouseLoanBatch houseLoanBatch) {
        return houseLoanBatchMapper.update(houseLoanBatch);
    }


    @Override
    public HouseLoanBatch selectKeyById(Integer id) {
        return houseLoanBatchMapper.selectKeyById(id);
    }

    @Override
    public List<HouseLoanBatch> selectByName(String key) {
        return houseLoanBatchMapper.selectByName(key);
    }
}
